package logica.consulta;

import java.sql.ResultSet;
import java.sql.SQLException;

import datos.conexion.ConexionH2;

import logica.control.Informe;

public class Consulta {
	private ConexionH2 conexH2;
	private ResultSet res;

	public Consulta(String cadena) throws SQLException {
		conexH2 = new ConexionH2();
		new Informe(res = conexH2.executeQueryStatement(cadena));
		res.close();
		conexH2.closeConnection();
	}

}
